* {
    margin: 0px;
    padding: 0px;
    box-sizing: border-box;
}

li {
    list-style: none;
}

a {
    text-decoration: none;
    color: inherit; /* 继承父元素颜色，便于统一管理 */
    transition: all 0.3s ease;
}

/* 头部导航样式 */
.header {
    margin: 0 20px 15px;
    border-radius: 12px; /* 稍小的圆角更显精致 */
    box-shadow: rgba(93, 63, 211, 0.15) 0 4px 12px; /* 紫色系阴影 */
    display: flex;
    padding: 12px 20px;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(135deg, #847d94 0%, #49197c 100%);
    color: #f0e6ff; /* 浅紫色文本 */
    position: sticky;
    top: 10px;
    z-index: 90;
}

/* 左侧导航链接 */
.left a {
    font-size: 18px;
    font-weight: 600;
    padding: 8px 12px;
    border-radius: 6px;
}

.left a:hover {
    color: #ffffff;
    background-color: rgba(255, 255, 255, 0.15);
}

/* 右侧区域样式 */
.right {
    display: flex;
    align-items: center;
    gap: 20px;
}

/* 用户名样式 */
.right span {
    font-size: 15px;
    font-weight: 500;
}

/* 右侧链接样式 */
.right a:not(.func) {
    padding: 6px 10px;
    border-radius: 6px;
    font-size: 15px;
}

.right a:not(.func):hover {
    color: #ffffff;
    background-color: rgba(255, 255, 255, 0.15);
}

/* 发布按钮样式 */
.right .func {
    display: inline-flex;
    align-items: center;
    padding: 8px 18px;
    background-color: #9370DB;
    color: #ffffff !important;
    border-radius: 6px;
    font-weight: 600;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.right .func:hover {
    background-color: #b19cd9;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.right .func:active {
    transform: translateY(0);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* 主内容区样式 */
.main {
    width: 1200px;
    margin: 20px auto;
    padding: 25px;
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: rgba(0, 0, 0, 0.05) 0 2px 10px;
    min-height: calc(100vh - 120px);
}

/* 响应式调整 */
@media (max-width: 1240px) {
    .main {
        width: 95%;
        padding: 20px;
    }
}

@media (max-width: 768px) {
    .header {
        flex-direction: column;
        gap: 15px;
        padding: 15px;
        margin: 0 10px 15px;
    }

    .right {
        width: 100%;
        justify-content: center;
        gap: 15px;
    }
}


